package com.iisi.dao;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import com.iisi.entity.LessionPo;
import com.iisi.web.JoinControoller;

@Repository
@Qualifier("lessionDao")
public class LessionDAOImpl extends BaseDAOHibernate implements LessionDAO {

	private static final Logger LOG = LoggerFactory
			.getLogger(JoinControoller.class);

	public LessionDAOImpl() {
		LOG.info("LessionDAOImpl");
	}

	@Override
	public List<LessionPo> getAll() {

		// TODO Auto-generated method stub
		return (List<LessionPo>) getHibernateTemplate().find(
				"select from LessionPo ");
	}

}
